<?php
namespace app\mobile\controller;

use app\model\Util; 
use app\model\Theme; 

class Deletesoftsn extends Base
{
    public function Deletesoftsn()
    {p
global $_G, $_P;
$themeid = intval($_P['themeid']);
if($themeid < 0){
	return_msg('活动入口不正确');
}
$theme = Theme::getThemeById($themeid);
if(empty($theme['id'])){
    die(Util::showError("请确认活动地址是否正确"));
    return;
}

$data = array(
    'softsn' => '',
);
db_update(t_theme, $data, array('id' => $themeid));

return_msg("清空激活码成功");
}
}